package com.coder520.dao;

import com.coder520.pojo.Permission;
import com.coder520.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long permissionid);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Long permissionid);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> selectByRoleId(Long roleId);

    List<Permission> selectAll();

    void deleteRole_PermissionByRoleId(Long roleid);

    void insertRole_Permission(@Param("roleid") Long roleid, @Param("per_ids") List<Long> per_ids);

}